import { Component, OnInit } from '@angular/core';
import * as ons from "onsenui";
import { Router } from '@angular/router';

@Component({
  selector: 'app-search',
  templateUrl: './search.component.html',
  styleUrls: ['./search.component.scss']
})
export class SearchComponent implements OnInit {
  title: string = '飞机票';
  constructor(private router:Router) { }
  // private _navigator: OnsNavigator
  ngOnInit() {
  }
  onClick() {
    ons.notification.alert('Hello, world!');
  }
 
  push() {
    console.log('push',this.router)  ;
    this.router.navigate(['result'], {
      queryParams: {
        name: 1,
        ff: 2,
        nmsl:3,
     }
   })
    // this._navigator.element.pushPage('result', { data: { hoge: "fuga" } });
  }
}

